package com.xuxin.baby.listener;

import android.view.View;

import androidx.annotation.NonNull;

import com.blankj.utilcode.util.ActivityUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.OnItemClickListener;
import com.xuxin.baby.activity.ChildDataActivity;
import com.xuxin.baby.activity.ChildEatingActivity;
import com.xuxin.baby.activity.ChildGreatActivity;
import com.xuxin.baby.activity.ChildSicknessActivity;
import com.xuxin.baby.activity.ChildSleepActivity;
import com.xuxin.baby.activity.ChildSmellyActivity;
import com.xuxin.baby.activity.ChildVaccineActivity;

/**
 * Created by xu_xin
 * Created on 2020/11/18 0018
 * 主页记录
 */
public class OnMainRecordListener implements OnItemClickListener {
    @Override
    public void onItemClick(@NonNull BaseQuickAdapter<?, ?> adapter, @NonNull View view, int position) {
        switch (position) {
            case 0:
                ActivityUtils.startActivity(ChildDataActivity.class);
                break;
            case 1:
                ActivityUtils.startActivity(ChildSleepActivity.class);
                break;
            case 2:
                ActivityUtils.startActivity(ChildSmellyActivity.class);
                break;
            case 3:
                ActivityUtils.startActivity(ChildEatingActivity.class);
                break;
            case 4:
                ActivityUtils.startActivity(ChildSicknessActivity.class);
                break;
            case 5:
                ActivityUtils.startActivity(ChildVaccineActivity.class);
                break;
            case 6:
                ActivityUtils.startActivity(ChildGreatActivity.class);
                break;
        }
    }
}